package com.lzy.mall.auth.feign;

import com.lzy.mall.auth.vo.UserLoginVo;
import com.lzy.mall.auth.vo.UserRegisterVo;
import com.lzy.mall.common.utils.ResultUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lzy
 * @date 2021/9/25 10:26
 */
@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/register")
    ResultUtils register(@RequestBody UserRegisterVo userRegisterVo);

    @PostMapping("/member/login")
    ResultUtils login(@RequestBody UserLoginVo vo);
//
//    @PostMapping("/member/member/oauth2/login")
//    ResultUtils login(@RequestBody SocialUser socialUser);
}